<template>
  <div id="app">
    <router-view v-if="!$route.meta.keepAlive"/>
    <keep-alive>
      <!-- 注意不要给keep-alive组件加 条件渲染 -->
      <router-view v-if="$route.meta.keepAlive"/>
    </keep-alive>
  </div>
</template>
